package validate

import (
	"github.com/go-playground/locales/en"
	"github.com/go-playground/locales/ja"
	"github.com/go-playground/locales/zh"
	ut "github.com/go-playground/universal-translator"
	"github.com/go-playground/validator/v10"
)

var (
	Validate *validator.Validate
	Uni      *ut.UniversalTranslator
)

func InitValidator() {
	Validate = validator.New()
	cn := zh.New()
	en := en.New()
	jp := ja.New()
	Uni = ut.New(en, cn, en, jp)
}
